#使用match和case构造分支结构
status_code = int(input('请输入状态码: '))
match status_code:
    case 400 : description = 'Bad Request'
    case 401 : description = 'Unauthorized'
    case 403 : description = 'Forbidden'
    case 404 : description = 'Not Found'
    case 405 : description = 'Method Not Allowed'
    case 418 : description = 'I am a teapot'
    case 429 : description = 'Too many requests'
    case _: description = 'Unknown Status Code'
print('状态码描述: ',description)